name: CI-Release

on:
  push:
    branches:
      - release-*
    tags:
      - v*
      - release-*
  pull_request:
    branches:
      - release-*

permissions:
  contents: read

jobs:
  release-tests:
    name: ci-release-tests
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repo
        uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
      - name: Release and run ltp tests
        run: |
          echo "disable release ci checks"
#          docker/run_docker.sh -t
#          docker/run_docker.sh --ltptest
#      - name: Pack docker_data
#        if: ${{ always() }}
#        run: pushd docker && sudo tar --exclude='docker_data/datanode*/disk' --exclude='docker_data/disk' -czvf docker_data.tar.gz docker_data
#      - name: Upload docker_data.tar.gz
#        if: ${{ always() }}
#        uses: actions/upload-artifact@v3
#        with:
#          name: docker_data
#          path: docker/docker_data.tar.gz
#          retention-days: 7
